home *** CD-ROM | disk | FTP | other *** search
- unit HintEg4U;
-
- interface
-
- uses
- SysUtils, Windows, Messages, Classes, Graphics, Controls, Forms, Dialogs,
- StdCtrls, ComCtrls, ExtCtrls;
-
- type
- TForm1 = class(TForm)
- Edit1: TEdit;
- Button1: TButton;
- CheckBox1: TCheckBox;
- Label1: TLabel;
- Memo1: TMemo;
- RadioButton1: TRadioButton;
- Panel1: TPanel;
- private
- { Private declarations }
- public
- function ExecuteAction(Action: TBasicAction): Boolean; override;
- end;
-
- var
- Form1: TForm1;
-
- implementation
-
- uses
- StdActns;
-
- {$R *.DFM}
-
- function TForm1.ExecuteAction(Action: TBasicAction): Boolean;
- begin
- if Action is THintAction then
- begin
- Result := True;
- { Write current component hint on panel }
- Panel1.Caption := THintAction(Action).Hint
- end
- else
- Result := inherited ExecuteAction(Action)
- end;
-
- end.
-